package com.baizhi.springmvc.dao;

import com.baizhi.springmvc.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    List<Book> selectByInventory();//--库存
    List<Book> selectBySalenum();//  Integer  not null,--销量
    List<Book> selectByGroundingDate(); //groundingDate date//--上架时间
    List<Book> selectByCustome_score();//custome_score--顾客评分
    List<Book> selectByFirstid(@Param("cid")Integer cid, @Param("start")Integer start, @Param("end") Integer end);
    List<Book> selectByTwoid(@Param("cid") Integer cid,@Param("start")Integer start,@Param("end")Integer end);
    Integer firstCount(Integer cid);

    Integer twoCount(Integer cid);

    Book selectOne(Integer id);
}
